package com.power.using.mydaggerp.presenter.book;

import android.support.annotation.NonNull;

import com.power.using.mydaggerp.contract.book.BookMainContract;
import com.power.using.mydaggerp.model.book.BookMainModel;

/**
 * Created by 聪明一只哈 on 2019/10/18.
 * Time: 2019/10/18  8:54
 */
public class BookMainPresenter extends BookMainContract.BookMainPresenter{

    @NonNull
    public static BookMainPresenter newInstance() {
        return new BookMainPresenter();
    }


    @Override
    public void getTabList() {

        if(mIView==null||mIModel==null){
            return;
        }

        mIView.showTabList(mIModel.getTabs());

    }

    @Override
    protected BookMainContract.IBookMainModel getModel() {
        return BookMainModel.newInstance();
    }

    @Override
    public void onStart() {

    }
}
